<div class="line-label">
  <%= page_entries_info(@descriptors) %>
</div>

<% if @descriptors.size > 0 %>
  <% paginated_section(@descriptors, options_will_paginate({:params => {:controller => :descriptors, :action => :selector_descriptors_list_from_paginate, :search_name => params[:search_name]}})) do %>

    <table style="min-width: 350px; max-width: 350px;">
        <thead>
          <tr>
            <th><%=t('activerecord.attributes.descriptor.description')%></th>
            <th><%=t('title_actions')%></th>
          </tr>
        </thead>
        <tbody>
          <% @descriptors.each do |descriptor| %>
            <tr>
              <td><%=h descriptor.description %></td>
              <td class="action" style="text-align: center;"><a href = "javascript:void(0)" onclick = "jQuery(function ($) {$.modal.close();});setProfileReference(<%=descriptor.id%>,'<%=session[:profile_reference_id]%>','<%=descriptor.class.name%>','<%=session[:profile_reference_type]%>','<%=descriptor.description%>','<%=session[:profile_reference_name]%>');"><%=t('btn_selected')%></a></td>
            </tr>
          <% end %>
         </tbody>
      </table>
  <% end %>
<% end %>
